/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;

/**
 *
 * @author Administrator
 */
public class FileDemo {
    public static void main(String args[]) throws FileNotFoundException{
        
        File file = new File("c:\\","2011-01-10.txt");
        FileOutputStream f = new FileOutputStream(file,true);
        PrintWriter p = new PrintWriter(f,true);
    
        p.println("十点钟开会");
        p.println("下课后要去吃粉");
        p.println("你已经向文件输出了两行备忘");
        System.out.println("");
    }

}
